package com.example.newspublish.service;

import com.example.newspublish.pojo.entity.Category;
import com.example.newspublish.pojo.form.CategoryForm;
import com.example.newspublish.util.result.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryService {

    Result addCategory(CategoryForm categoryForm);

    Result getCategoryList();

    Result deleteCategoryById(Long id);

    Result updateCategoryById(Long id, String categoryName);
}
